Linux Shell 延迟输出
#!/bin/bash
OUTFILE="/tmp/outfile.out" # Define the output file
cat /dev/null > $OUTFILE # Create a zero size output file
# 2. Start an until loop to catch the delayed reponse
until [ -s $OUTFILE ]
do
echo $SHELL >> $OUTFILE
done
# 3. Show the resulting output
more $OUTFILE